<template>
    <div>
        <component :is="this.checkAgents?'Pc':'Mobile'"></component>
    </div>
</template>

<script>
import {checkAgents} from "@/utils/match";
import Mobile from "@/views/home/right/mobile/index.vue";
import Pc from "@/views/home/right/pc/index.vue";
export default {
    components:{
        Mobile,
        Pc
    },
    data(){
        return{
            checkAgents:false
        }
    },
    created() {
        this.checkAgents = checkAgents()
    }
}
</script>

